#ifndef _GAME_H
#define _GAME_H

#define USER_MAX       20

#define RANGE_FAST     9
#define RANGE_GENERAL  99
#define RANGE_MIN      0

#define RED     "\033[1m\033[41;33m"
#define GREEN   "\033[1m\033[42;33m"
#define PURPLE  "\033[1m\033[45;33m"
#define TAIL    "\033[0m"

struct user{
	char account[20];
	char password[20];
};

extern void start(void);
extern int login_menu(void);
extern void register_account(struct user list[]);
extern struct user login(void);
extern int exist(struct user list[], struct user user_login);
extern int menu(void);
extern int randnum(int range);
extern int game(int choice, int target_data);
extern int end(void);
extern void ruler(void);


#endif
